package main

import (
	"global/core"
	"srv/common/libs/rate"
)

type Handler struct {
	Ctx 			*core.Context
}

func NewHandler(ctx *core.Context) *Handler {
	return &Handler{
		Ctx: 		ctx,
	}
}

func (h *Handler) serv()  {
	r := rate.NewRate(h.Ctx.GetBaseRedis())
	r.Run()
}